﻿using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Drawing;
using System.Data;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Windows.Forms;

namespace _2013_ece_csharp_snake
{
    public partial class UC_GameInfo : UserControl
    {
        public UC_GameInfo()
        {
            InitializeComponent();
        }

        public void updateScore(int score)
        {
            this.labelScore.Text = "Score: " + score;
        }

        public void updateTime(DateTime initial)
        {
            this.labelDuration.Text = "Duration: " + DateTime.Now.Subtract(initial).Minutes + ":" + DateTime.Now.Subtract(initial).Seconds;
        }
    }

}
